.formContainer {
  background-color: var(--theme-bg-secondary);
  min-height: 100vh;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  // Material Icons 样式
  .material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
  }

  // 头部样式
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 40px;

    .backButton {
      background: none;
      border: none;
      color: white;
      padding: 8px;
      margin-left: -8px;
      cursor: pointer;

      .material-icons {
        font-size: 24px;
      }
    }

    .title {
      font-size: 20px;
      font-weight: bold;
      margin: 0;
    }

    .publishButton {
      background: var(--theme-primary);
      color: white;
      padding: 10px 24px;
      border-radius: 50px;
      font-weight: 600;
      border: none;
      box-shadow: 0 4px 14px 0 rgba(236, 72, 153, 0.3);
      transition: background-color 0.3s;

      &:hover {
        background: var(--theme-primary);
      }

      &:disabled {
        background: var(--theme-text-muted);
        box-shadow: none;
      }
    }
  }

  // 主内容区域
  .main {
    padding: 0 24px;
  }

  // 智能体信息展示
  .agentInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;

    .avatarContainer {
      position: relative;
      margin-bottom: 20px;
      display: flex;
      justify-content: center;
      align-items: center;

      :global {
        .adm-form-item {
          margin: 0;
        }
      }
    }


    .roleName {
      color: var(--theme-primary);
      margin: 8px 0 4px 0;
      font-size: 18px;
      font-weight: 600;
    }

    .cardTitle {
      color: white;
      margin: 8px 0 4px 0;
      font-size: 24px;
      font-weight: bold;
      letter-spacing: 0.025em;
    }

    .author {
      color: var(--theme-text-muted);
      margin: 0;
      font-size: 16px;
    }
  }

  // 表单样式
  .form {
    :global {
      .adm-form-item {
        margin-bottom: 32px;
        --padding-left: 0;
        --padding-right: 0;

        .adm-form-item-child-inner {
          background: none;
          padding: 0;
        }
      }
    }
  }

  // 输入组样式
  .inputGroup {
    margin-bottom: 32px;

    .label {
      display: block;
      color: var(--theme-text-muted);
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 8px;
    }

    .categoryInput {
      display: flex;
      align-items: center;
      background: rgba(17, 24, 39, 0.5);
      border-radius: 12px;
      padding: 16px;
      border: 1px solid var(--theme-border-primary);
      transition: border-color 0.3s;
      cursor: pointer;
      position: relative;

      &:hover {
        border-color: var(--theme-primary);
      }

      .material-icons {
        color: var(--theme-text-muted);
        margin-right: 16px;
        font-size: 20px;
      }

      .categoryText {
        color: var(--theme-text-muted);
        flex: 1;
        margin-left: 10px;
      }

      .dropdown_arrow {
        font-size: 12px;
        color: var(--theme-text-muted);
        transition: transform 0.3s ease;
        margin-left: 8px;
        flex-shrink: 0;
      }
    }

    .descriptionContainer {
      display: flex;
      background: rgba(17, 24, 39, 0.5);
      border-radius: 12px;
      padding: 16px;
      border: 1px solid var(--theme-border-primary);
      transition: border-color 0.3s;

      &:focus-within {
        border-color: var(--theme-primary);
      }

      .material-icons {
        color: var(--theme-text-muted);
        margin-right: 16px;
        margin-top: 4px;
        font-size: 20px;
        float: left;
      }

      .descriptionInput {
        background: none;
        border: none;
        color: white;
        width: 100%;
        resize: none;
        outline: none;
        font-size: 16px;
        line-height: 1.5;
        margin-left: 10px;

        &::placeholder {
          color: var(--theme-text-muted);
        }

        :global {
          .adm-text-area {
            background: none;
            border: none;
            color: white;
            font-size: 16px;

            &::placeholder {
              color: var(--theme-text-muted);
            }
          }
        }
      }
    }
  }

  // 分类上拉列表样式
  .category_dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;

    &.dropdown_enter {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }
  }

  .dropdown_content {
    padding: 0;
    background: var(--theme-bg-card);
    border-radius: 12px;
    border: 1px solid var(--theme-border-primary);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.1);
    }

    &::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.2);
      border-radius: 3px;
    }

    &::-webkit-scrollbar-thumb:hover {
      background: rgba(0, 0, 0, 0.3);
    }
  }

  .category_item {
    margin-bottom: 0;
    background: var(--theme-bg-card);
    border-radius: 0;
    padding: 0;
    border: none;

    &:last-child {
      margin-bottom: 0;
      border-bottom: none;
    }
  }

  .category_header {
    margin-bottom: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--theme-bg-secondary);
    position: relative;
    background: var(--theme-bg-hover);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &:hover {
      background: var(--theme-bg-secondary);
    }

    &:last-child {
      border-bottom: none;
    }

  }

  .category_title_wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
    align-items: flex-start;
  }

  .category_name {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0;
    line-height: 1.4;
    gap: 6px;
    text-align: left;
    justify-content: flex-start;
  }

  .category_arrow {
    font-size: 12px;
    color: var(--theme-text-muted);
    transition: transform 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;

    &:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--theme-text-primary);
    }

    &.collapsed {
      transform: rotate(-90deg);
    }
  }

  .subcategories_list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: var(--theme-bg-card);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.3s ease-out;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      max-height: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      max-height: 500px;
      transform: translateY(0);
    }
  }

  .subcategory_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 10px 32px;
    border-radius: 0;
    border-bottom: 1px solid var(--theme-bg-secondary);
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: var(--theme-bg-card);

    &:hover {
      background: var(--theme-bg-secondary);
    }

    &:last-child {
      border-bottom: none;
    }

  }

  .subcategory_name {
    font-size: 14px;
    color: var(--theme-text-secondary);
    font-weight: 500;
  }

  // 不可选择的分类样式
  .disabled_category {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: var(--theme-bg-card) !important;
    
    &:hover {
      background: var(--theme-bg-card) !important;
    }
  }

  .disabled_subcategory {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: var(--theme-bg-card) !important;
    
    &:hover {
      background: var(--theme-bg-card) !important;
    }
  }

  .disabled_text {
    color: var(--theme-text-muted) !important;
    text-decoration: line-through;
  }

  .loading_categories {
    padding: 20px;
    text-align: center;
    color: var(--theme-text-muted);
    font-size: 14px;
  }

  :global {
    .adm-list-item{
      background-color: transparent !important;
    }
    .adm-list-item-content{
      border: none !important;
    }
    .adm-list-body{
      background-color: transparent !important;
      border: none !important;
    }
  }
}